<?php

if (!defined('IN_MOBILE_API')) {
    exit('Access Denied');
}

include_once 'forum.php';

class cloud_api {

    function common() {

    }

    function output() {
        global $_G;
        if($_GET['params']=='order'){
            $c =  file_get_contents("orderTree.json");
        }else{
            $c =  file_get_contents("Tree.json");
        }
        echo
        $callback = $_GET['callback'];

        if( empty($callback)){
            echo $c;
        }else{
            echo $callback.'('.$c.');';
        }
        exit;
    }
}

?>